<%--
 *  File:    OrgSummary.jsp
 *  @Author: Langerwang
 *  Date:    2001/12/10
 *
 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Oval
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>

<%@ page contentType = "text/html;charset=GBK" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/oval-tag.tld" prefix="oval" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<%
  String strModuleName = "OGM";
  String privilegeCode = "10103,L102";
%>



<%
  //get curuser info
  HashMap CurUserInfo = (HashMap)session.getAttribute("userinfo");
  String strCurOrgName = (String)CurUserInfo.get("orgname");
  Integer nCurOrgId = (Integer)CurUserInfo.get("orgid");
  if(nCurOrgId == null)
  {
    nCurOrgId = new Integer(-1234567);
  }

%>
<%--<%@ include file="/inc/Security.inc" %>--%>
<%@ include file="/inc/FrmDefault.inc" %>
<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/LocationDefault.inc" %>

<html>
<head>



<title>spellCodeDataLoader</title>
<PageFlow:CheckPageFlow pageName="p_selectsepllcn"/>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">

<%
	
  	Vector items = (Vector) pageContext.getAttribute("totalsummary");
		if (items == null) {
			items = new Vector();
		}

		StringBuffer itemsJS = new StringBuffer();
		itemsJS.append("[");
		for (Iterator iter = items.iterator(); iter.hasNext();) {
			Map item = (Map) iter.next();
			itemsJS.append("{");
			Set keys = item.keySet();
			for (Iterator iterator = keys.iterator(); iterator.hasNext();) {
				String key = (String) iterator.next();
				String value = "";
				if(item.get(key) != null){
					value = ((Object) item.get(key)).toString();
				}
				itemsJS.append(key).append(" : '").append(value).append("'");
				if (iterator.hasNext()) {
					itemsJS.append(", ");
				}
			}
			itemsJS.append("}");
			if (iter.hasNext()) {
				itemsJS.append(", ");
			}
		}
		itemsJS.append("]");
		out.print(itemsJS);
		
%>


<script type="text/javascript">
	if (parent) {
		if (parent.Oval && parent.Oval.SpellCodeAutoComplete) {
		  var AC = parent.Oval.SpellCodeAutoComplete;
			AC.spellCodeTmpData = <%= itemsJS.toString()%>;
			AC.needToQuery = true;
			var currentSpellCodeAC = AC.currentSpellCodeAutoComplete;
			currentSpellCodeAC.autoComplete.sendQuery(currentSpellCodeAC.queryStr);
			AC.needToQuery = false;
		}
	}

</script>

</head>


<body >

</body>
</html>


